﻿package main

import "fmt"

func main() {
    var m1 = map[int]string{
        1: "k1",
        2: "k2",
        3: "k3",
        4: "k4",
        5: "k5",
    }
    fmt.Println(m1)

    var m2 = make(map[string]int, 5)
    for k, v := range m1 {
        m2[v] = k
    }
    fmt.Println(m2)
}